import os

data = open('sketch.txt')
for line in data:
##    print(line, end='')
##    if line.find(':') != -1:
##        (role, content) = line.split(':', 1)
##        print(role, end='')
##        print(' said:', end='')
##        print(content, end='')
##    else:
##        print(line, end='')
    try:
        (role, content) = line.split(':')
        print(role, end='')
        print('said:', end='')
        print(content, end='')
    except:
        pass
